package net.xiangcaowuyu.shiro.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author laughing
 * @date 2020/10/11
 * @site https://www.xiangcaowuyu.net
 */
@ConfigurationProperties(prefix = "shiro")
@Configuration
@Data
public class ShiroProperty {

    private User user;
    private Redis redis;

}

@Data
class User{
    private String loginUrl;
    private String unauthorizedUrl;
    private String indexUrl;
    private boolean captchaEnabled;
    private String captchaType;
}

@Data
class Redis{
    private String host;
    private long port;
}